package ${package}.domain.sil.dto;

import com.imydao.common.core.web.page.PageDomain;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

<#list imports as i>
import ${i!};
<#if i?contains("java.time.")>
import java.time.format.DateTimeFormatter;
</#if>
</#list>

/**
* ${tableComment}查询参数
*
* @author ${author} ${email}
* @since ${version} ${date}
*/
@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "${tableComment}")
public class ${ClassName}SearchDto extends PageDomain implements Serializable {

  /**
   * 组织id
   * @mock 1
   */
  private Long orgId;

<#list columnList as column>
<#if column.query>
  <#if column.columnComment!?length gt 0>
  /**
   * ${column.columnComment}
   * @mock 111111
   */
  @Schema(description = "${column.columnComment}")
  </#if>
  private ${column.attrType} ${column.attrName};

</#if>
</#list>
<#list columnList as column>
<#if column.query>
  <#if column.attrType == "LocalDate">
  <#if column.columnComment!?length gt 0>
  /**
   * ${column.columnComment}mapper检索字段
   */
  </#if>
  public String get${column.attrName?cap_first}Str(){
    return this.${column.attrName} == null ? null : this.${column.attrName}.format(DateTimeFormatter.ofPattern("yyyy-MM-dd"));
  }

  </#if>
  <#if column.attrType == "LocalDateTime">
  <#if column.columnComment!?length gt 0>
  /**
   * ${column.columnComment}mapper检索字段
   */
  </#if>
  public String get${column.attrName?cap_first}Str(){
    return this.${column.attrName} == null ? null : this.${column.attrName}.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
  }

  </#if>
</#if>
</#list>
}